package com.x.aoki.nacos.config.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author caoy
 * @date 2025-02-19 12:50:38
 */
@RestController
@RefreshScope
public class ConfigClientController {

    @Value("${ccc.yyy}")
    private String cccYyy;

    @GetMapping("/ccc/yyy")
    public String getConfigInfo() {
        return cccYyy;
    }
}
